import { request } from "@/utils/request";

export const getUserDiscountApi = () => {
    return request({
        url: `/ht-nonrealtime-gameservice/honorScore/getUserDiscount`,
        method: 'GET',
    })
}
export const zhXzUserPlaceAnOrderApis = place => {
    return request({
        url: `/ht-nonrealtime-gameservice/zhXz/zhXzUserPlaceAnOrder`,
        method: 'POST',
        data:  place
    })
}
export const getMerchantInfoApi = id => {
    return request({
        url: `/ht-nonrealtime-gameservice/zhXz/getMerchantInfo?id=${id}`,
        method: 'GET'
    })
}
export const getUserPayCanCouponApi = (data) => {
    return request({
        url: `/ht-nonrealtime-gameservice/coupon/getUserPayCanCoupon`,
        method: 'GET',
        data
    })
}
// 取消支付
export const zhXzPayUserCancelPayApi = (data) => {
    return request({
        url: `/ht-nonrealtime-gameservice/zhXz/zhXzPayUserCancelPay`,
        method: 'GET',
        data
    })
}

// 翼支付统一支付接口
export const yzfUserPlaceAnOrderApi = place => {
    return request({
        url: `/ht-nonrealtime-gameservice/yzf/yzfUserPlaceAnOrder`,
        method: 'POST',
        data:  place
    })
}

// 现金钱包下单
export const pursePayApi = place => {
    return request({
        url: `/ht-nonrealtime-gameservice/purse/tbUserPurse/pursePay`,
        method: 'POST',
        data:  place
    })
}

// 现金钱包确认/取消支付
export const updatePursePayOrderApi = place => {
    return request({
        url: `/ht-nonrealtime-gameservice/purse/tbUserPurse/updatePursePayOrder`,
        method: 'POST',
        data:  place
    })
}
